import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
Vue.config.productionTip = false
Vue.use(ElementUI)
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import router from "./router/index"
import Video from 'video.js'
import 'video.js/dist/video-js.css'
import './api/mock'

import Echarts from 'echarts'


import axios from 'axios'

// 挂载一个自定义属性$http
Vue.prototype.$http = axios
// 全局配置axios请求根路径(axios.默认配置.请求根路径)
axios.defaults.baseURL = 'http://yufei.shop:3000'

Vue.use(Echarts)



Vue.prototype.$video = Video
new Vue({
  render: h => h(App),
  router
}).$mount('#app')
